
import { Injectable, Injector } from '@angular/core';
import { NgRepository } from '@farris/devkit';
import { BefRepository, NgVariable } from '@farris/bef';
import { TslmEntity } from './entities/tslmentity';

import { TslmProxy } from './tslmproxy';

@Injectable()
@NgRepository({
    apiUrl: 'api/basicdata/financedata/v1.0/hmdgl_frm',
    entityType: TslmEntity
})
export class TslmRepository extends BefRepository<TslmEntity> {
    public name = 'TslmRepository';

    public proxy: TslmProxy;
    public paginationInfo = {
        TslmEntity: {
            pageSize: 20,
        }
    };
    constructor(injector: Injector) {
        super(injector);
        this.proxy = injector.get(TslmProxy, null);
    }
}